# 1、@property 将一个方法转换为属性

class Calc:
    def __init__(self, param1, param2):
        self.param1 = param1
        self.param2 = param2

    @property
    def plus(self):
        return self.param1 + self.param2


calc = Calc(6, 8)
print("求和：", calc.plus)
